import Vue from 'vue';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue';
import router from './router';
import store from './store';
import './assets/css/public.css'
import './assets/css/global.css'
import { formatDateTime } from './assets/js/time.js'
//引入axios
import axios from "axios";
//axios挂载
Vue.prototype.formatDateTime = formatDateTime;
Vue.prototype.$http = axios
//设置访问路径
axios.defaults.baseURL = "http://localhost:9000"

Vue.use(ElementUI);

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');
